
REPLICATION FILES FOR:  
	
	The long-term impact of employment bans on the economic integration of refugees

	Please contact Moritz Marbach if you have any problems 
	or questions with these replication files: moritz.marbach@gess.ethz.ch 
	Current contact details are also available at: www.moritz-marbach.com



	July 10, 2018
	



OVERVIEW
=========

Our use of the Mikrozensus data was governed by a data sharing agreement with the German Federal Statistical Office. We were granted permission to analyze the data, but the data itself was not transferred to us. Instead, we developed code files based on mock data and sent these code files to the staff of the Mikrozensus unit who executed the code in a secure data facility, and returned the results to us. The staff returned only those results that met the legal confidentiality criteria. Hence, this replication archive contains the code files only. 

Researchers who wish to replicate the analysis will have to apply for data access with the Forschungsdatenzentrum: http://www.forschungsdatenzentrum.de/

All estimates presented in the paper are obtained using STATA 14 and can be replicated by running main.do. 

To replicate the display items (figures and tables) run make_display.R in R afterwards. 





FIGURES AND TABLES
==================


Figure 1: (compiled from external data)

Figure 2: MainFigure1.pdf generated by ./syntax/_means_attrition.R

Figure 3: MainFigure2.pdf generated by ./syntax/_interflex.R

Figure 4: (compiled from external data)

Figure 5: fig_balance.pdf generated by ./syntax/_balance_test.R 

Figure 6: fig_attrition.pdf generated by ./syntax/_means_attrition.R

Figure 7: MainFigure2_men.pdf generated by ./syntax/_interflex.R

Figure 8: fig_interflex_income.pdf generated by ./syntax/_interflex.R




Table 1: (compiled from external data)

Table 2: (compiled from external data)

Table 3: (compiled from external data)

Table 4: compiled from logfile.log 

Table 5: compiled from logfile.log 

Table 6: tab_MainFigure2.txt generated by ./syntax/_interflex.R

Table 7: tab_MainFigure2.txt generated by ./syntax/_interflex.R

Table 8: motivation.txt generated by main.do 

Table 9: tab_MainFigure2_men.txt generated by ./syntax/_interflex.R

Table 10: tab_MainFigure2_men.txt generated by ./syntax/_interflex.R





R sessionInfo() 
================

R version 3.5.0 (2018-04-23)
Platform: x86_64-apple-darwin17.5.0 (64-bit)
Running under: macOS High Sierra 10.13.5

Matrix products: default
BLAS/LAPACK: /usr/local/Cellar/openblas/0.3.0/lib/libopenblasp-r0.3.0.dev.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] xtable_1.8-2    gridExtra_2.3   bindrcpp_0.2.2  ggplot2_2.2.1  
 [5] datatools_1.1.0 lubridate_1.7.4 stringr_1.3.1   dplyr_0.7.5    
 [9] tidyr_0.8.1     haven_1.1.1     colorout_1.2-0 

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.17       RColorBrewer_1.1-2 pillar_1.2.2       compiler_3.5.0    
 [5] plyr_1.8.4         bindr_0.1.1        forcats_0.3.0      tools_3.5.0       
 [9] digest_0.6.15      tibble_1.4.2       gtable_0.2.0       lattice_0.20-35   
[13] pkgconfig_2.0.1    rlang_0.2.1        cli_1.0.0          parallel_3.5.0    
[17] hms_0.4.2.9000     lmtest_0.9-36      grid_3.5.0         tidyselect_0.2.4  
[21] glue_1.2.0         data.table_1.11.5  R6_2.2.2           adagio_0.7.1      
[25] reshape2_1.4.3     readr_1.2.0        purrr_0.2.5        magrittr_1.5      
[29] splines_3.5.0      scales_0.5.0       stringdist_0.9.4.7 assertthat_0.2.0  
[33] colorspace_1.3-2   labeling_0.3       utf8_1.1.4         sandwich_2.4-0    
[37] stringi_1.2.2      lazyeval_0.2.1     munsell_0.4.3      crayon_1.3.4      
[41] zoo_1.8-1         